Conversation
|
According to the Rust Reference, I'm not entirely convinced that we can safely remove the code that references the variable just because the compiler happens to not remove the variable for the kernels in our tests. |
|
Tested it in gobolt and using similar setup current approach got removed but not used |
|
The address cannot be removed though. It must be present. The used attribute does not prevent the linker from removing the variable if it's own heuristics determine that it is unused. |
|
good point my bad link |
|
Thank you for your contribution! Given that the Rust reference doesn't guarantee that |
ran the test suite and it seems fine